---@class Battle.AiCanPathFindingCondition:Battle.AiCondition
---@field New fun():Battle.AiCanPathFindingCondition
local AiCanPathFindingCondition = Battle.CreateClass("AiCanPathFindingCondition",Battle.AiCondition)
Battle.AiCanPathFindingCondition = AiCanPathFindingCondition

function AiCanPathFindingCondition:Awake()
    
end
function AiCanPathFindingCondition:onInitialize()
    local actor = self:GetActor()
    self:SetCondition( actor.effectStateSystem:CanMove() and
            not actor.effectStateSystem:HasState(Battle.FighterStateEnum.CAN_NOT_PATH_FIND),
            true,Battle.CompareType.Equals)
end

function AiCanPathFindingCondition:ToString()
    local s = Battle.AiBehavior.ToString(self)
    return s.." condition:"..tostring(self:IsTrigger())
end